package com.recommend.service.admin.impl;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.recommend.domain.AdminDomain;
import com.recommend.persistence.AdminDomainMapper;
import com.recommend.service.LoginService;

/**
 * Created by lw.
 */
@Service
@Transactional
public class LoginServiceImpl implements LoginService{
    private final static Logger logger = org.slf4j.LoggerFactory.getLogger(LoginServiceImpl.class);

    @Resource
    private AdminDomainMapper adminDomainMapper;

    @Override
    public AdminDomain select(AdminDomain adminDomain){
        return adminDomainMapper.select(adminDomain);
    }

    @Override
    public int updateByAccount(AdminDomain adminDomain){
        return adminDomainMapper.updateByAccount(adminDomain);
    }
}
